
* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 20px;
  font-weight: blod;
}

#name {
  width: 300px;
  margin: 0 auto;

  #resetButton {
    margin: 0 0 5px 20px;
    padding: 5px;
  }
}

#main {
  width: 450px;
  height: 600px;
  background: lightblue;
  border: 15px solid black;
  margin: 0 auto;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  box-sizing: content-box;

  #stage {
    width: 400px;
    height: 400px;
    border: 2px solid black;
    position: relative;

    #snake {
      .headStyle {
        background: black;
        border: none !important;
      }

      & > div {
        width: 10px;
        height: 10px;
        background: black;
        box-sizing: border-box;
        position: absolute;
        border-radius: 50%;
        border: 2px solid lightblue;;
      }
    }

    #food {
      width: 10px;
      height: 10px;
      background: black;
      border: 2px solid black;
      box-sizing: border-box;
      // border-radius: 50%;
      position: absolute;
      left: 40px;
      top: 100px;
    }
  }

  #score-panel {
    width: 400px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

#operate {
  width: 120px;
  height: 120px;
  background: lightgray;
  border-radius: 50%;
  border: 1px solid lightgray;
  position: absolute;

  & > div {
    width: 40px;
    height: 40px;
    background: black;
    border-radius: 50%;
    position: relative;


    text-align: center;
    line-height: 40px;
  }

  .operateUp {
    top: 0px;
    left: 40px;
    transform:rotate(-90deg);
  }

  .operateRight {
    top: 0px;
    left: 78px;
  }

  .operateDown {
    bottom: 0;
    left: 40px;
    transform:rotate(90deg);
  }

  .operateLeft {
    top: -78px;
    left: 0px;
    transform:rotate(-180deg);
  }

  .icon {
    font-weight: bolder;
    color: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

